mat1 = gr.material({0.7, 1.0, 0.7}, {0.5, 0.7, 0.5}, 25)
mat2 = gr.material({0.5, 0.5, 0.5}, {0.5, 0.7, 0.5}, 25)
mat3 = gr.material({0.7, 0.6, 1.0}, {0.5, 0.4, 0.8}, 25)


scene_root = gr.node('root')

s2 = gr.nh_sphere('s2', {50, 50, -300}, 50)
scene_root:add_child(s2)
s2:set_material(mat1)

s1 = gr.nh_sphere('s1', {250, 150, -600}, 50)
scene_root:add_child(s1)
s1:set_material(mat2)

s4 = gr.nh_sphere('s4', {-50, -10, -100}, 50)
scene_root:add_child(s4)
s4:set_material(mat3)

white_light = gr.light(1,0,{0,0,800}, {0.7, 0.7, 0.7}, {1, 0, 0})

gr.render(scene_root, 'depthoffield-100.png',500, 500,
          {0, 0, 100}, {0, 0, -1}, {0, 1, 0}, 50,
          {0.3, 0.3, 0.3}, {white_light},1,0,1,-100,0,0)

